<?php
$this->xmlDeclaration();

$error = array(
    'code'      => $this->code,
    'message'   => $this->message,
    'exception' => $this->exception
);

echo Zend_Json::encode($error);
